package cn.xiuxius.askbox.pojo.dto.query;

import cn.xiuxius.askbox.common.constant.AccountState;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author xiaoxiu
 * @since 2024-07-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="UserQueryDTO对象", description="")
public class UserQueryDTO implements Serializable {

    private String uuid;

    private String username;

    private String displayName;

    private String phone;

    private String email;

    private AccountState state;

    private String registerIp;

    private String lastLoginIp;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTimeBegin;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTimeEnd;

    @NotNull(message = "页码不能为空")
    private Long page = 1L;
    @NotNull(message = "每页条数不能为空")
    private Long pageSize = 10L;


}
